package mn.idax.exchange.otc.web;

import mn.idax.exchange.common.bean.ResponseData;
import mn.idax.exchange.otc.util.CacheUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author boyo boyo@gmail.com
 */
@RestController("encryptControllerNew")
@RequestMapping(value = "/api")
public class EncryptControllerNew {

    private static final Logger logger = LoggerFactory.getLogger(EncryptControllerNew.class);


    @RequestMapping(value = "/uss/get", produces = "application/json", method = RequestMethod.POST)
    public ResponseData userGet() {
        logger.info("EncryptControllerNew->userGet");
        return  ResponseData.success(CacheUtil.userPublicKey);
    }


    @RequestMapping(value = "/get", produces = "application/json", method = RequestMethod.POST)
    public ResponseData get() {
        logger.info("EncryptControllerNew->get");
        return  ResponseData.success(CacheUtil.publicKey);
    }


}
